<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //定义一个类
    class Person{
      static name = '人类';
      static test = function(){
        console.log('测试');
      }
    }

    //实例化对象
    let you = new Person();
    //实例身上没有这个属性
    // console.log(you.name);
    // you.test();

    //访问静态属性
    console.log(Person.name);
    Person.test();


  </script>
</body>
</html>